<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" language="java"%>
<%@ page import="java.lang.String" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/yy-1_0.tld" prefix="yy"%>
<c:set var="pageTitleLocal" value="热门资源" />
<yy:footprint pageTitle="${pageTitleLocal}" />

<HEAD>
	<base href="${AppURL}/ilib/" />
  	<title>热门资源</title>
	<LINK rel=stylesheet type=text/css href="style/main.css">
</HEAD>
<jsp:useBean id="pageInfo" scope="request" class="westh.ilib.util.PageInfo" />
<BODY>
<DIV id="container">
	<DIV id="header">
		<div id="logo">
			<div><img src="images/idlib.jpg"></div>
		</div>
		<ul id="menu">
			<li><a href="index.html">首页</a></li>
			<li><a href="addFunction.html">添加功能块</a><img src="images/add2.gif"></li>		
			<li><a href="myResource.html">我的资源</a></li>
			<li><a href="option.html">设置</a></li>
			<li><a href="logoff.html">退出</a></li>
		</ul>
	</DIV>
	<div id="clear"></div>
	
	<form name = "testForm" action="http://localhost:4180/ilib/getHotResource.do" method="post" onsubmit="return validate_form(this)">
	<%@ include file="../JSP/pageTop.jsp"%>
	
	<INPUT TYPE="HIDDEN" ID="Start" NAME="Start" VALUE="${Start}" />
	<INPUT TYPE="HIDDEN" ID="End" NAME="End" VALUE="${End}" />
	<INPUT TYPE="HIDDEN" ID="personalize" NAME="personalize" VALUE="${personalize}" />
	<INPUT TYPE="HIDDEN" ID="resourceCount" NAME="resourceCount" VALUE="${resourceCount}" />
	<div id="left" height = "900" align="center">
		<div id="lblock0" align="center">		
			<table width="850" border="1" align="center"  cellpadding="0" cellspacing="0" style="border-collapse: collapse" bgcolor="#f2f8ff" >
  				<tr>
              	<!-- 列表开始 -->
              		<td align="center"width="5%"><b>序号</b></td>
              		<td align="center"width="20%"><b>题目</b></td>
					<td align="center" class="style3" width="5%">类型</td>
					<td align="center" class="style3" width="10%">出版时间</td>
					<td align="center" class="style3" width="5%">来源域</td>
  				</tr>
  				<!-- <a href="cdoiEditPre.do?id=${cdoi.id}">${cdoi.title}</a> -->
		    		<c:set var="i" value="${num}"/>
		    		
					<c:forEach items="${pageInfo.pageList}" var="resource" >
					<tr>
						<td align="center" class="style3">&nbsp;<c:set var="i" value="${i+1}"/>${i}</td>
						<td align="center" class="style3" with="200"><a href="/ilib/rscInfo.do?rscId=${resource.rscId}">${resource.rscTitle}</a></td>
						<td align="center" class="style3" width="100">
							<c:choose>
								<c:when test="${resource.rscType eq 1}"><c:out value="图书"></c:out> </c:when>
								<c:when test="${resource.rscType eq 2}"><c:out value="会议论文"></c:out>  </c:when>
								<c:when test="${resource.rscType eq 3}"><c:out value="期刊论文"></c:out>  </c:when>
								<c:when test="${rescoure.rscType eq 4}"><c:out value="专利"></c:out> </c:when>
								<c:when test="${rescoure.rscType eq 5}"><c:out value="标准"></c:out> </c:when>
								<c:when test="${rescoure.rscType eq 6}"><c:out value="软著"></c:out>  </c:when>
								<c:when test="${rescoure.rscType eq 7}"><c:out value="技术报告"></c:out>  </c:when>
							</c:choose>				
						</td>
						<td align="center" class="style3">${resource.rscPublishDate}</td>
						<td align="center" class="style3" width="100" >
							<c:choose>
								<c:when test="${resource.rscField eq 1}"><c:out value="国家图书馆"></c:out> </c:when>
								<c:when test="${resource.rscField eq 2}"><c:out value="清华图书馆"></c:out> </c:when>
								<c:when test="${resource.rscField eq 3}"><c:out value="CALIS"></c:out> </c:when>
								<c:when test="${resource.rscField eq 4}"><c:out value="清华大学水利"></c:out> </c:when>
								<c:when test="${resource.rscField eq 5}"><c:out value="TagSys"></c:out> </c:when>
							</c:choose>
						</td>
					</tr> 
					</c:forEach>

				<!-- 列表结束 -->
				
			</table>
			<c:if test="${resourceCount>10}">
			</br>
			 		<%@ include file="../JSP/pageBottom.jsp"%>	
			</c:if>
		</div>
	</div>
	</form>
	<div id="footer">
		iLib 2010
	</div>	
<!-- end #container -->


</DIV>

</body>
</html>